<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>像素射击游戏</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <canvas id="gameCanvas" width="800" height="600"></canvas>
    <div id="gameUI">
        <div id="scoreboard">
            <div class="score">分数: <span id="score">0</span></div>
            <div class="lives">生命: <span id="lives">3</span></div>
            <div class="ammo">弹药: <span id="ammo">30</span>/<span id="maxAmmo">30</span></div>
        </div>
        <div id="startScreen">
            <h1>像素射击游戏</h1>
            <p>按空格键开始游戏</p>
            <p>使用WASD移动，鼠标瞄准和射击</p>
            <p>R键换弹夹</p>
        </div>
        <div id="gameOver" style="display: none;">
            <h1>游戏结束</h1>
            <p>最终分数: <span id="finalScore">0</span></p>
            <p>按R键重新开始</p>
        </div>
    </div>
    <script src="game.js"></script>
</body>
</html>